/**
 * 作者：陈文斌 on 2019/1/18.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/Employee/employee_model.dart';
import 'package:crm/model/Friend/friend_model.dart';
import 'package:crm/model/Friend/friends_group_by_company_model.dart';
import 'package:crm/model/Friend/friend_request_model.dart';
import 'package:crm/model/Company/company_department_model.dart';

part 'friend_group_model.g.dart';

@JsonSerializable()
class FriendGroupModel extends Object with _$FriendGroupModelSerializerMixin{
  String Id;
  int Ordering;
  String MeId;
  EmployeeModel Me;
  String Name;
  String Notes;
  List<FriendModel> Friends;
  List<FriendsGroupByCompanyModel> FriendsGroupByCompany;
  List<FriendRequestModel> Requests;
  List<CompanyDepartmentModel> CompanyDepartment;

  FriendGroupModel(
    this.Id,
    this.Ordering,
    this.MeId,
    this.Me,
    this.Name,
    this.Notes,
    this.Friends,
    this.FriendsGroupByCompany,
    this.Requests,
    this.CompanyDepartment,
  );

  @override
  factory FriendGroupModel.fromJson(Map<String, dynamic> json) => _$FriendGroupModelFromJson(json);
}
